Klasse FilePdfSource

java.lang.Object
com.inet.pdfc.config.PdfSource
com.inet.pdfc.config.FilePdfSource
Alle implementierten Schnittstellen:
Serializable, Comparable<PdfSource>

@JsonData public class FilePdfSource extends PdfSource
This is a PdfSource which based on a file system object.
Siehe auch:
  • Konstruktordetails

    • FilePdfSource

      public FilePdfSource(File document)
      Creates the PdfSource for a file system object.
      Parameter:
      document - the actual document file
      Löst aus:
      IllegalArgumentException - in case pdfFile cannot be accessed or is a directory
      Seit:
      3.0
    • FilePdfSource

      public FilePdfSource(File pdfFile, String explicitName)
      Creates the PdfSource for a file system object.
      Parameter:
      pdfFile - the actual PDF document file
      explicitName - the name to be set for this PdfSource, this replaces the name derived from the file
      Löst aus:
      IllegalArgumentException - in case pdfFile cannot be accessed or is a directory
      Seit:
      3.0
    • FilePdfSource

      public FilePdfSource(File pdfFile, String explicitName, boolean setNoMetaPath)
      Creates the PdfSource for a file system object.
      Parameter:
      pdfFile - the actual PDF document file
      explicitName - the name to be set for this PdfSource, this replaces the name derived from the file
      setNoMetaPath - true for removing path information, for other case false
      Löst aus:
      IllegalArgumentException - in case pdfFile cannot be accessed or is a directory
      Seit:
      3.0
  • Methodendetails

    • getLastModified

      public long getLastModified()
      Returns the time of the last modification to the document. It's only used for report generation an has no impact on the comparison.
      Setzt außer Kraft:
      getLastModified in Klasse PdfSource
      Gibt zurück:
      the last modified timestamp of the document; interpreted as milliseconds since the beginning of 1970
    • getSize

      public long getSize()
      Returns the size of the raw data in bytes
      Setzt außer Kraft:
      getSize in Klasse PdfSource
      Gibt zurück:
      the size of the raw data in bytes
    • getPath

      public String getPath()
      Get the path of this document, if one exist. If no existing path, it give null back.
      Setzt außer Kraft:
      getPath in Klasse PdfSource
      Gibt zurück:
      return the path of the document or null if no path exist
    • getContent

      public com.inet.persistence.RandomAccessRead getContent() throws IOException
      Returns the readable content of this document source
      Angegeben von:
      getContent in Klasse PdfSource
      Gibt zurück:
      the readable content of this document source
      Löst aus:
      IOException - thrown in case the source data cannot be accessed or does not exist